//
// Created by Administrator on 2019/12/06.
//
#include "Shape.h"


int Rectangle::area()
{
    return w * h;
}

int Triangle::area()
{
    return w * h / 2;
}